package com.aat.dxfy.test.service.impl;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aat.dxfy.test.bean.Bean;
import com.aat.dxfy.test.dao.BeanDao;
import com.aat.dxfy.test.service.BeanService;

@Service
public class BeanServiceImpl  implements BeanService {

    @Autowired
    private BeanDao beanDao;

    public int add(Bean bean){
        return beanDao.add(bean);
    }

    public int delete(String id){
        return beanDao.delete(id);
    }

    public int update(Bean bean){
        return beanDao.update(bean);
    }

    public Bean getOne(String id){
        return beanDao.getOne(id);
    }

    public List<Bean> getAll(Map<String, Object> map){
        return beanDao.getAll(map);
    }

    public int getCount(Map<String, Object> map){
        return beanDao.getCount(map);
    }

}
